package com.sky.utils;

public class ThreadLocalUtils {
    private static final ThreadLocal<Long> loginEmpIdLocal = new ThreadLocal<>();
    public static void setThreadLocal(Long id){
        loginEmpIdLocal.set(id);
    }

    public static Long getLoginEmpId(){
        return loginEmpIdLocal.get();
    }

    public static void  removeLoginEmpId(){
        loginEmpIdLocal.remove();
    }
}
